From 2bb556ed0dd65cdc736601ea1eb5a84ff0c12f4c Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20H=C3=A4rdeman?= Date: Wed, 24 Sep 2025 14:31:58 +0200 Subject: [PATCH] dhcpv4: rename valid_until_cb() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Renaming valid_until_cb() to dhcpv4_valid_until_cb() is more consistent with the other function names and is helpful if the function ever shows up in a stack trace. Signed-off-by: David Härdeman Link: https://github.com/openwrt/odhcpd/pull/264 Signed-off-by: Álvaro Fernández Rojas --- src/dhcpv4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dhcpv4.c b/src/dhcpv4.c index 385faf6..e2c978a 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -1218,7 +1218,7 @@ static void dhcpv4_netevent_cb(unsigned long event, struct netevent_handler_info } } -static void valid_until_cb(struct uloop_timeout *event) +static void dhcpv4_valid_until_cb(struct uloop_timeout *event) { struct interface *iface; time_t now = odhcpd_time(); @@ -1241,7 +1241,7 @@ static void valid_until_cb(struct uloop_timeout *event) int dhcpv4_init(void) { static struct netevent_handler dhcpv4_netevent_handler = { .cb = dhcpv4_netevent_cb }; - static struct uloop_timeout valid_until_timeout = { .cb = valid_until_cb }; + static struct uloop_timeout valid_until_timeout = { .cb = dhcpv4_valid_until_cb }; uloop_timeout_set(&valid_until_timeout, 1000); netlink_add_netevent_handler(&dhcpv4_netevent_handler); -- 2.30.2